#include  <stdio.h>
int main(void)
{
    /*************** Begin **************/
    char a[100];
    scanf("%s", &a);
    printf("%s\n", a);
    char x, y ,z[3] = {'\0'};
    x = a[0];
    y = a[2];
    for (int i = 0; i < 2; ++i) z[i] = a[4 + i];
    printf("\'%c\',\'%c\',%s\n", x, y ,z);
	/*************** End **************/
    return 0;
}